<template>
  <header id="head_top">
    <section class="head_goback" @click="$router.go(-1)" v-if="tit=='评价'">
      <img src="../assets/back.png" alt>
    </section>

    <section class="title_head">
      <span class="title_text">{{tit}}</span>
    </section>
  </header>
</template>

<script>
export default {
  props: ["tit"]
};
</script>

<style lang="scss" scoped>
@import "../style/mixin";

#head_top {
  background-color: #fff;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  box-shadow: 0 -0.026667rem 0.053333rem rgba(0, 0, 0, 0.1);
  @include wh(100%, 1.95rem);
}
.head_goback {
  left: 0.4rem;
  @include wh(0.6rem, 1rem);
  line-height: 2.3rem;
  margin-left: 0.4rem;
  img {
    height: 100%;
  }
}
.title_head {
  @include center;
  width: 50%;
  color: #fff;
  text-align: center;
  .title_text {
    @include sc(0.8rem, #000);
    text-align: center;
    font-weight: bold;
  }
}
</style>
